<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // console.log(Object.is(120,120));// true
        // console.log(Object.is(NaN,NaN));// true
        // console.log(NaN === NaN);// false

        // const config1 = {
        //     host: 'localhost',
        //     port: 5500,
        //     name: 'root',
        //     pass: 'root'
        // };

        // const config2 = {
        //     host: 'https://www.cnblogs.com/wzx-blog/',
        //     port: 33068,
        //     name: 'sujinnina.com',
        //     pass: 'abcdefgf',
        // }
        // console. log(Object.assign(config1, config2));

        //object.setPrototypeOf设置原型对象object.getPrototypeof

        const blog = {
            name: "苏槿年"
        }
        const cities = {
            address: ["北京", "上海", "深圳"]
        }
        Object.setPrototypeOf(blog, cities);
        console.log(Object.getPrototypeOf(blog));
        console.log(blog);






    </script>
</body>

</html>